package com.itycu.server.domain.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itycu.server.annotation.Excel;
import com.itycu.server.core.domain.BaseNewEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * 流程记录对象 flow_todo
 *
 * @author itycu
 * @date 2022-11-03
 */
@TableName("flow_todo")
public class FlowTodo extends BaseNewEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 审批人 */
    @Excel(name = "审批人")
    private Long auditBy;

    /** 发送人 */
    @Excel(name = "发送人")
    private Long sendBy;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String biztype;

    /** 业务ID */
    @Excel(name = "业务ID")
    private Long bizid;

    /** 业务表名 */
    @Excel(name = "业务表名")
    private String biztable;

    /** 业务单据创建人 */
    @Excel(name = "业务单据创建人")
    private Long bizcreateby;

    /** 业务单据部门 */
    @Excel(name = "业务单据部门")
    private Long bizdeptid;

    /** 状态:待审批/同意/拒绝 */
    @Excel(name = "状态:待审批/同意/拒绝")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 备用1 */
    @Excel(name = "备用1")
    private String c01;

    /** 备用2 */
    @Excel(name = "备用2")
    private String c02;

    /** 备用3 */
    @Excel(name = "备用3")
    private String c03;

    /** 流程 */
    @Excel(name = "流程")
    private Long flowid;

    /** 节点 */
    @Excel(name = "节点")
    private Long stepid;

    /** 业务处理URL */
    @Excel(name = "业务处理URL")
    private String url;

    /** 制单人 */
    private Long createBy;

    /** 审核人指定用户 */
    @Excel(name = "审核人指定用户")
    private Long prjid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAuditBy(Long auditBy)
    {
        this.auditBy = auditBy;
    }

    public Long getAuditBy()
    {
        return auditBy;
    }
    public void setSendBy(Long sendBy)
    {
        this.sendBy = sendBy;
    }

    public Long getSendBy()
    {
        return sendBy;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setBiztype(String biztype)
    {
        this.biztype = biztype;
    }

    public String getBiztype()
    {
        return biztype;
    }
    public void setBizid(Long bizid)
    {
        this.bizid = bizid;
    }

    public Long getBizid()
    {
        return bizid;
    }
    public void setBiztable(String biztable)
    {
        this.biztable = biztable;
    }

    public String getBiztable()
    {
        return biztable;
    }
    public void setBizcreateby(Long bizcreateby)
    {
        this.bizcreateby = bizcreateby;
    }

    public Long getBizcreateby()
    {
        return bizcreateby;
    }
    public void setBizdeptid(Long bizdeptid)
    {
        this.bizdeptid = bizdeptid;
    }

    public Long getBizdeptid()
    {
        return bizdeptid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo()
    {
        return memo;
    }
    public void setC01(String c01)
    {
        this.c01 = c01;
    }

    public String getC01()
    {
        return c01;
    }
    public void setC02(String c02)
    {
        this.c02 = c02;
    }

    public String getC02()
    {
        return c02;
    }
    public void setC03(String c03)
    {
        this.c03 = c03;
    }

    public String getC03()
    {
        return c03;
    }
    public void setFlowid(Long flowid)
    {
        this.flowid = flowid;
    }

    public Long getFlowid()
    {
        return flowid;
    }
    public void setStepid(Long stepid)
    {
        this.stepid = stepid;
    }

    public Long getStepid()
    {
        return stepid;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setCreateBy(Long createBy)
    {
        this.createBy = createBy;
    }

    public Long getCreateBy()
    {
        return createBy;
    }
    public void setPrjid(Long prjid)
    {
        this.prjid = prjid;
    }

    public Long getPrjid()
    {
        return prjid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("auditBy", getAuditBy())
            .append("sendBy", getSendBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("title", getTitle())
            .append("content", getContent())
            .append("biztype", getBiztype())
            .append("bizid", getBizid())
            .append("biztable", getBiztable())
            .append("bizcreateby", getBizcreateby())
            .append("bizdeptid", getBizdeptid())
            .append("status", getStatus())
            .append("memo", getMemo())
            .append("c01", getC01())
            .append("c02", getC02())
            .append("c03", getC03())
            .append("flowid", getFlowid())
            .append("stepid", getStepid())
            .append("url", getUrl())
            .append("createBy", getCreateBy())
            .append("prjid", getPrjid())
            .toString();
    }
}
